#include <vector>
#include <string>
#include <SDL.h>
#include <process.h>
#include "SDL_image.h"


#ifndef	_CEXPLOSION_H
#define _CEXPLOSION_H


class CExplosion
{
public:
	
	int ms;
	int x;
	int y;
	SDL_Surface * screen;
	CExplosion();
	CExplosion(int ms,int x,int y,SDL_Surface * screen,CExplosion * c);
	~CExplosion();
	static void myFunction( void* dummy);
	void Run(int ms,int x,int y,SDL_Surface * screen,CExplosion * c);
	void onload(char * File);
	void draw(int ms,int x,int y,SDL_Surface * screen,int i);
	static bool  Render;
private:
	int speed;	
	std::vector<std::string> explosionList;
	std::vector<int> explosionListMain;
	SDL_Surface *load_image( std::string filename );
};

#endif;